<?php
namespace app\api\model;
use traits\model\SoftDelete;

class ProductOrderReturn extends Base
{
    use SoftDelete;
    // 设置当前模型的数据库连接
    // 设置当前模型的数据库连接
    public function orderDetail(){
        return $this->hasMany("ProductOrderDetailReturn","order_return_id","id");
    }

    public function productOrder(){
        return $this->hasOne("ProductOrder","id","relation_id")->bind(["contact_number"=>"contact_number","order_price"=>'total_price']);
    }
}